﻿using System.Collections.Generic;
using System.ComponentModel;
namespace DiagramDesigner.BusinessModelObject
{
    public abstract class MainElementModel:BaseModel
    {
        #region Properties
        readonly Dictionary<int, BaseField> _atributos = new Dictionary<int, BaseField>();
        private readonly List<LinkModel> _sourceConnections = new List<LinkModel>();
        private readonly List<LinkModel> _sinkConnections = new List<LinkModel>();

        public Dictionary<int, BaseField> Atributos
        {
            get
            {
                return _atributos;
            }
        }

        public List<LinkModel> SourceConnections
        {
            get
            {
                return _sourceConnections;
            }
        }
        public List<LinkModel> SinkConnections
        {
            get
            {
                return _sinkConnections;
            }
        }

        [Description("Name")]
        [TypePropertyAttribute(TypeControl.TextBoxControl)]
        public string Name
        {
            get; set;
        }

        public CriterionModel Criterion
        {
            get; set; 
        }
        #endregion
    }
}
